{% extends "base.html" %}

{% block content %}
  <div class="panel">
      <h1>创建职员:</h1>
      <div class="pageContent">
      <form action="/admin/user/create?navTabId=user_detail_page" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
          <div class="pageFormContent" >

            {% csrf_token %}

              <p>
                {{form.username.errors}}
                <label for="id_username">用户名</label>
                {{form.username}}
              </p>
              <p>

                  {{form.last_name.errors}}
                  <label for="id_last_name">真实姓名</label>
                  {{form.last_name}}
              </p>
              <p>

                  {{form.password1.errors}}
                  <label for="id_password1">密码</label>
                  {{form.password1}}
              </p>
              <p>
                  <label>&nbsp;</label>
              </p>
              <p>

                  {{form.password2.errors}}
                  <label for="id_password2">确认密码</label>
                  {{form.password2}}
              </p>
              <p>
                  <label>&nbsp;</label>
              </p> <p>
              <label>&nbsp;</label>
          </p>
              <p>
                  <label>&nbsp;</label>
              </p>
              <p>
                  {{form.dept.errors}}
                  <label for="id_dept">部门</label>
                  {{form.dept}}
              </p>
              <p>
                  <label>&nbsp;</label>
              </p>
              <p>
                  {{form.title.errors}}
                  <label for="id_title">职务</label>
                  {{form.title}}
              </p>

              <p>
              <label>&nbsp;</label>
              </p>
              <p>
              {{form.email.errors}}
              <label for="id_email">电子邮箱</label>
              {{form.email}}
              </p>
              <p>
              {{form.gender.errors}}
              <label for="id_gender">性别</label>
              {{form.gender}}
              </p>
              <p>
                  {{form.birthday.errors}}
                  <label for="id_birthday">生日</label>
                  {{form.birthday}}
                  <a class ="inputDateButton" href="#">选择</a>
              </p>


      </div>


          <div class="formBar">
              <ul>
                  <li><input type="submit" value="创建"></li>
              </ul>
          </div>
  </form>
  </div>
 </div>
  {% endblock %}
